<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>session对象</title>
</head>
<body>
	<h1>session_one.jsp</h1>
	<%
		session.setAttribute("name", "admin");
		session.setAttribute("password", "123");
	%>
	<a href="session_two.jsp">session_two</a>
	
	<h2>sessionID: <%=session.getId()%></h2>
	
	<%
// 		session.invalidate(); //session立即失效
// 		session.setMaxInactiveInterval(2);
		
		out.println("serverInfo :"+application.getServerInfo());
		application.setAttribute("app1", "application对象值1");
	%>
</body>
</html>